-- GENERATED SPELL FOR [Hatecrest Siren] --


function spell0_5337(pUnit, Event) --@Dominate Mind,n/a--
pUnit:FullCastSpellOnTarget(7645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5337', 12000, 1)
end

function spell1_5337(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5337', 3000, 1)
end

function Sorts_5337(pUnit, Event)
local choix_sorts_5337 = math.random(0, 1)
if choix_sorts_5337 == 0 then
pUnit:RegisterEvent('spell0_5337', 1, 1)
end
if choix_sorts_5337 == 1 then
pUnit:RegisterEvent('spell1_5337', 1, 1)
end
end

function mob5337_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5337', math.random(1500, 3000), 1)
end

function mob5337_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5337_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5337_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5337, 1, 'mob5337_Action')
RegisterUnitEvent(5337, 2, 'mob5337_Leave')
RegisterUnitEvent(5337, 3, 'mob5337_Kill')
RegisterUnitEvent(5337, 4, 'mob5337_Die')
